<template>
  <div class="page">
    <div v-drag class="rect"></div>
  </div>
</template>

<script setup lang="ts"></script>

<style scoped lang="scss">
.page {
  position: relative;
  width: 50%;
  height: 50%;
  border: 1px solid red;
}

.rect {
  position: absolute;
  width: 100px;
  height: 100px;
  background-color: peru;
}
</style>
